<template>
  <el-tooltip :content="itemData.item_desc" placement="top">
    <div class="eq-card">
      <div class="top"><img :src="itemData.iconPath" alt="" /></div>
      <div class="middle">{{ itemData.name }}</div>
      <div class="bottom">{{ itemData.total }}</div>
    </div>
  </el-tooltip>
</template>

<script>
export default {
  props: {
    itemData: Object
  }
}
</script>

<style lang="scss" scoped>
.eq-card {
  width: 94px;
  height: 130px;
  padding: 12px;
  background-color: #02151e;
  position: relative;
  border-radius: 5px;
  margin: 5px;
  margin-right: 0;
  transition: all 0.3s;

  &:hover {
    transform: translateY(-5px);
  }

  .top {
    width: 100%;
    text-align: center;
  }

  .middle {
    color: #fff;
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
  }

  .bottom {
    position: absolute;
    bottom: 10px;
    left: 43px;
    text-align: center;
    color: yellow;
  }
}
</style>
